#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <QMainWindow>
#include <QFile>
#include <QDebug>
#include <fstream>
#include <iostream>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void load_log();
    static void log(const std::string msg);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::MainWindow *ui;

    QFile logfile;
};

void execute_file_with_exec(const std::string& filename);
#endif // MAINWINDOW_H
